/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CadastrarMotorista.java
 *
 * Created on 02/08/2011, 21:40:47
 */

package View.ProducaoValores;


import Controle.Controlador;
import Controle.Uteis;
import Formulario.Formulario;
import Formulario.Pessoal;
import Modelo.Cliente_has_Seguro;
import Modelo.Data;
import Modelo.Fisico;
import Modelo.Funcionario;
import Modelo.Juridico;
import Modelo.Parcela;
import View.Fundo2;
import View.Iniciar;
import View.Progress;
import View.TelaMetodos;
import java.awt.BorderLayout;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.SwingWorker;
import javax.swing.event.ChangeEvent;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Fernando
 */
public class ProducaoDiariaPessoal extends javax.swing.JFrame {
public static Fundo2 pnlFundo = new Fundo2();
    private Funcionario func;
    private Thread processo;
    /** Creates new form CadastrarMotorista */
    public ProducaoDiariaPessoal() {
      initComponents();
        this.pack();

    this.setLayout(new BorderLayout());
      this.add(pnlFundo, BorderLayout.CENTER);
    this.setExtendedState(MAXIMIZED_BOTH);

    }
    
     public ProducaoDiariaPessoal(Funcionario func) {
        this();
        this.func = func;
        responsavel.setText(this.func.getNome());
     }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        responsavel = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tabelaProducao = new javax.swing.JTable();
        jLabel4 = new javax.swing.JLabel();
        data = new javax.swing.JFormattedTextField();
        jButton1 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        barradeprogresso = new javax.swing.JProgressBar();
        label = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tabelaDespesas = new javax.swing.JTable();
        jLabel3 = new javax.swing.JLabel();
        totalDespesas = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tabelaTotal = new javax.swing.JTable();
        jPanel7 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        tabelaDespesas2 = new javax.swing.JTable();
        jButton5 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        totalRecebimentos = new javax.swing.JFormattedTextField();
        jButton2 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        sobraDia = new javax.swing.JTextField();
        totalAntigos = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        totalDia = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        caixaAnterior = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        soma = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        entrregue = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        sobraCaixa = new javax.swing.JTextField();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Produção diária pessoal");

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Contato", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        jLabel1.setText("Responsável:");

        jLabel2.setText("Data:");

        tabelaProducao.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        tabelaProducao.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                tabelaProducaoInputMethodTextChanged(evt);
            }
        });
        tabelaProducao.addAncestorListener(new javax.swing.event.AncestorListener() {
            public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
            }
            public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
                tabelaProducaoAncestorAdded(evt);
            }
            public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
            }
        });
        jScrollPane2.setViewportView(tabelaProducao);

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel4.setForeground(new java.awt.Color(153, 0, 0));
        jLabel4.setText("Fatura");

        data.setFormatterFactory((new javax.swing.text.DefaultFormatterFactory(Uteis.Mascara("##/##/####"))));

        jButton1.setText("Buscar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton6.setText("Calcular");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jLabel16.setText("Gerando Comprovante:");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(328, 328, 328)
                        .addComponent(jLabel16)
                        .addGap(18, 18, 18)
                        .addComponent(barradeprogresso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(4, 4, 4)
                        .addComponent(label, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(responsavel, javax.swing.GroupLayout.PREFERRED_SIZE, 327, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(27, 27, 27)
                        .addComponent(jLabel2)
                        .addGap(9, 9, 9)
                        .addComponent(data, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32)
                        .addComponent(jButton1)
                        .addGap(151, 151, 151)
                        .addComponent(jLabel4))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 950, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(851, 851, 851)
                        .addComponent(jButton6)))
                .addContainerGap(1641, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(13, 13, 13)
                        .addComponent(jLabel1))
                    .addComponent(barradeprogresso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(label, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addGap(6, 6, 6)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(responsavel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(7, 7, 7)
                        .addComponent(jLabel2))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(data, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton1)
                        .addComponent(jLabel4)))
                .addGap(6, 6, 6)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton6)
                .addContainerGap())
        );

        jLabel22.setBackground(new java.awt.Color(204, 0, 0));
        jLabel22.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel22.setForeground(new java.awt.Color(204, 0, 0));
        jLabel22.setText("Produção diaria de pessoal");

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));
        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Despesas", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        tabelaDespesas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        tabelaDespesas.addAncestorListener(new javax.swing.event.AncestorListener() {
            public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
            }
            public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
                tabelaDespesasAncestorAdded(evt);
            }
            public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
            }
        });
        jScrollPane3.setViewportView(tabelaDespesas);

        jLabel3.setText("Total:");

        totalDespesas.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        totalDespesas.setEnabled(false);
        totalDespesas.setOpaque(false);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(totalDespesas, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(totalDespesas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        jPanel6.setBackground(new java.awt.Color(255, 255, 255));
        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Total", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        tabelaTotal.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        tabelaTotal.addAncestorListener(new javax.swing.event.AncestorListener() {
            public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
            }
            public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
                tabelaTotalAncestorAdded(evt);
            }
            public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
            }
        });
        jScrollPane4.setViewportView(tabelaTotal);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 627, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel7.setBackground(new java.awt.Color(255, 255, 255));
        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Recebimentos antigos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        tabelaDespesas2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        tabelaDespesas2.addAncestorListener(new javax.swing.event.AncestorListener() {
            public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
            }
            public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
                tabelaDespesas2AncestorAdded(evt);
            }
            public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
            }
        });
        jScrollPane5.setViewportView(tabelaDespesas2);

        jButton5.setText("Calcular");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jLabel5.setText("Total:");

        totalRecebimentos.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0.00"))));
        totalRecebimentos.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        totalRecebimentos.setEnabled(false);
        totalRecebimentos.setOpaque(false);

        jButton2.setText("Adicionar");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton7.setText("Excluir");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel7Layout.createSequentialGroup()
                        .addGap(117, 117, 117)
                        .addComponent(jButton2)
                        .addGap(50, 50, 50)
                        .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel7Layout.createSequentialGroup()
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(totalRecebimentos, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButton5))
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 305, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(totalRecebimentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton2)
                    .addComponent(jButton7)))
        );

        jPanel8.setBackground(new java.awt.Color(255, 255, 255));
        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Cálculo total", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 14), new java.awt.Color(204, 0, 0))); // NOI18N

        jLabel6.setText("Sobra do dia:");

        sobraDia.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                sobraDiaFocusLost(evt);
            }
        });

        totalAntigos.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                totalAntigosFocusGained(evt);
            }
        });

        jLabel7.setText("Total antigos:");

        jLabel8.setText("Total do dia:");

        jLabel9.setText("Caixa anterior:");

        caixaAnterior.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                caixaAnteriorFocusLost(evt);
            }
        });

        jLabel10.setText("Soma:");

        jLabel11.setText("Entregue:");

        entrregue.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                entrregueFocusLost(evt);
            }
        });

        jLabel12.setText("Sobra caixa:");

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(jLabel6))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel7))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel8))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel11)))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(sobraDia, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(totalAntigos, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(totalDia, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(caixaAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(soma, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(entrregue, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sobraCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jLabel6)
                        .addGap(12, 12, 12)
                        .addComponent(jLabel7)
                        .addGap(12, 12, 12)
                        .addComponent(jLabel8)
                        .addGap(13, 13, 13)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel10)
                        .addGap(14, 14, 14)
                        .addComponent(jLabel11)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel12))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(sobraDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(6, 6, 6)
                        .addComponent(totalAntigos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(6, 6, 6)
                        .addComponent(totalDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(5, 5, 5)
                        .addComponent(caixaAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(soma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(entrregue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(sobraCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(99, Short.MAX_VALUE))
        );

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/voltar.png"))); // NOI18N
        jButton3.setText("Voltar");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Icones/visualizar.png"))); // NOI18N
        jButton4.setText("Gerar Relatorio");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jLabel22)
                                .addGap(81, 81, 81)
                                .addComponent(jButton3)
                                .addGap(69, 69, 69)
                                .addComponent(jButton4)
                                .addGap(69, 69, 69))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE))
                                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                        .addGap(1655, 1655, 1655))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 38, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel22)
                        .addComponent(jButton4, 0, 0, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 341, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)))
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-1024)/2, (screenSize.height-750)/2, 1024, 750);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
               TelaMetodos.Dispose(this);

    }//GEN-LAST:event_jButton3ActionPerformed

    private void tabelaProducaoAncestorAdded(javax.swing.event.AncestorEvent evt) {//GEN-FIRST:event_tabelaProducaoAncestorAdded
tabelaProducao.setModel(tabela1);
        tabela1.addColumn("Seguro ");
        tabela1.addColumn("UF destino ");
        tabela1.addColumn("Vendedor ");
          tabela1.addColumn("Valor Mercadoria ");
        tabela1.addColumn("Veiculo ");
        tabela1.addColumn("ICMS ");
          tabela1.addColumn("Seguro ");
        tabela1.addColumn("Outros ");
        tabela1.addColumn("Total ");
          tabela1.addColumn("Valor pago ");
        tabela1.addColumn("Valor à receber ");
        tabela1.addColumn("Fatura p/ cliente ");
}//GEN-LAST:event_tabelaProducaoAncestorAdded

    public void editingCanceled(ChangeEvent e) {
   
  }
  public void editingStopped(ChangeEvent e) {
    
  }
    private void tabelaDespesasAncestorAdded(javax.swing.event.AncestorEvent evt) {//GEN-FIRST:event_tabelaDespesasAncestorAdded
        tabelaDespesas.setModel(tabela2);
        tabela2.addColumn("Origem ");
        tabela2.addColumn("Valor ");
        tabela2.addColumn("Referente ");

}//GEN-LAST:event_tabelaDespesasAncestorAdded

    private void tabelaTotalAncestorAdded(javax.swing.event.AncestorEvent evt) {//GEN-FIRST:event_tabelaTotalAncestorAdded
       
        tabelaTotal.setModel(tabela3);
        tabela3.addColumn("Embarque ");
        tabela3.addColumn("Geral ");
        tabela3.addColumn("A vista ");
        tabela3.addColumn("Faturar ");
        tabela3.addColumn("Despesas dia ");        // TODO add your handling code here:
    }//GEN-LAST:event_tabelaTotalAncestorAdded

    private void tabelaDespesas2AncestorAdded(javax.swing.event.AncestorEvent evt) {//GEN-FIRST:event_tabelaDespesas2AncestorAdded
        tabelaDespesas2.setModel(tabela4);
        tabela4.addColumn("Valor");
        tabela4.addColumn("Referente");
    }//GEN-LAST:event_tabelaDespesas2AncestorAdded

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
          final Progress p = new Progress();
          p.setVisible(true);
          SwingWorker worker = new SwingWorker(){
               @Override
               protected Object doInBackground() throws Exception {
                    preenche(); // meu processo demorado
                    return null;
               }
               @Override
               protected void done() {
                    p.setVisible(false);
               }
          };
          worker.execute();


    }//GEN-LAST:event_jButton1ActionPerformed

    public void preenche(){
         preencheSeguros();
         buscarContas();
         total();
        TelaMetodos.defineRenderers(tabelaProducao);
    }

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        float temp=0;
        for(int i=0; i<tabela4.getRowCount();i++){
            temp+=Uteis.transformaFloat(tabela4.getValueAt(i, 0).toString());
        }
        totalRecebimentos.setText(Uteis.Num(temp));
        temp = vRecebeu-Uteis.transformaFloat(totalDespesas.getText());
        sobraDia.setText(Uteis.Num(temp));
        caixa();
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
      tabela4.addRow(new String []{"",""});
    }//GEN-LAST:event_jButton2ActionPerformed

    private void totalAntigosFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_totalAntigosFocusGained
       caixa();
    }//GEN-LAST:event_totalAntigosFocusGained

    private void sobraDiaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_sobraDiaFocusLost
      caixa();
    }//GEN-LAST:event_sobraDiaFocusLost

    private void entrregueFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_entrregueFocusLost
     float temp = Uteis.transformaFloat(soma.getText())-Uteis.transformaFloat(entrregue.getText());
        sobraCaixa.setText(Uteis.Num(temp));
    }//GEN-LAST:event_entrregueFocusLost

    private void tabelaProducaoInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_tabelaProducaoInputMethodTextChanged

}//GEN-LAST:event_tabelaProducaoInputMethodTextChanged

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
       float temp=0;
        for(int i=0;i<tabelaProducao.getRowCount();i++){
           temp +=Uteis.transformaFloat(tabelaProducao.getValueAt(i, tabelaProducao.getColumnCount()-3).toString());
       }
       vRecebeu=temp;
       total();
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
         if(tabelaProducao.getRowCount()>0){
         /*  DefaultTableModel t1,DefaultTableModel t2,DefaultTableModel t3,DefaultTableModel t4,
            String totalDespesa, String totalRecebimento, String sobra,String totalAntigo,String totalDia, String caixaAnt, String SOMA,
            String entregue, String sobraCaixa,String responsavel,String data)*/
            Pessoal p = new Pessoal();
            p.preencherDados(tabela1, tabela2, tabela4, tabela3, Uteis.Moeda(Uteis.transformaFloat(totalDespesas.getText())),
                    Uteis.Moeda(Uteis.transformaFloat(totalRecebimentos.getText())) ,Uteis.Moeda(Uteis.transformaFloat(sobraDia.getText())),
                    Uteis.Moeda(Uteis.transformaFloat(totalAntigos.getText())),Uteis.Moeda(Uteis.transformaFloat(totalDia.getText())),
                    Uteis.Moeda(Uteis.transformaFloat(caixaAnterior.getText())), Uteis.Moeda(Uteis.transformaFloat(soma.getText())),
                    Uteis.Moeda(Uteis.transformaFloat(entrregue.getText())),Uteis.Moeda(Uteis.transformaFloat(sobraCaixa.getText())), responsavel.getText(),data.getText());
           int caixa = JOptionPane.showConfirmDialog(this, "Deseja alterar o valor do caixa");
           if(caixa==0){
               func.setValorCaixa(Uteis.transformaFloat(sobraCaixa.getText()));
              String result= Controlador.altCaixa(func);
              if(result.equals("erro ao alterar"))
                  JOptionPane.showMessageDialog(null, result);
           }
               
         
            if(processo !=null && processo.getState()== processo.getState().TERMINATED)
                 processo = null;
            executaProcesso(p);
        }else{
            JOptionPane.showMessageDialog(null, "Não existe dados na tabela");
        }
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        if(tabelaDespesas2.getSelectedRow()!=-1){
        tabela4.removeRow(tabelaDespesas2.getSelectedRow());
        tabelaDespesas2.setModel(tabela4);
        tabelaDespesas2.repaint();
        tabelaDespesas2.revalidate();
        }else
            JOptionPane.showMessageDialog(null, "selecione uma linha");
    }//GEN-LAST:event_jButton7ActionPerformed

    private void caixaAnteriorFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_caixaAnteriorFocusLost
       caixa();
    }//GEN-LAST:event_caixaAnteriorFocusLost

    public void preencheSeguros(){
          int contador = 0;
        ArrayList <Cliente_has_Seguro> cli = new ArrayList<Cliente_has_Seguro>();
        ArrayList <Cliente_has_Seguro> funcSegDia = new ArrayList<Cliente_has_Seguro>();
        Data date = new Data(data.getText());
        cli.addAll(Controlador.segurosDoDia(date.formatoBanco()));
        funcSegDia = Uteis.comparaSeguro(cli, func);
        TelaMetodos.RemoveDadosTabela(tabela1, tabelaProducao);
        totalEmb = funcSegDia.size();
        for(Cliente_has_Seguro s:funcSegDia){
                if(s.getSeg().getDest().getCli() instanceof Juridico){
                        Juridico jur = (Juridico)s.getSeg().getDest().getCli();

                        tabela1.addRow(new String[]{ s.getSeg().getSTRC(),
                        jur.getPessoa().getEstado(),s.getSeg().getVendedor(),
                        Uteis.Moeda(s.getSeg().getMer().getValorMercadoria()),
                        s.getSeg().getVeic().getPlaca(),
                         Uteis.Moeda(s.getSeg().getValorICMS()),
                         Uteis.Moeda(s.getSeg().getValorSeguro()),
                         Uteis.Moeda(s.getSeg().getOutros()),
                         Uteis.Moeda(s.getSeg().getTotal()),
                         Uteis.Moeda(s.getValorJaPago()),
                         Uteis.Moeda(s.getValorFatura()-s.getValorJaPago()),
                        s.getCli().getNomeFaturante()});
                }
                if(s.getSeg().getDest().getCli() instanceof Fisico){
                       Fisico fis = (Fisico)s.getSeg().getDest().getCli();

                        tabela1.addRow(new String[]{s.getSeg().getSTRC(),
                        fis.getPessoa().getEstado(),s.getSeg().getVendedor(),
                        Uteis.Moeda(s.getSeg().getMer().getValorMercadoria()).toString(),
                        s.getSeg().getVeic().getPlaca(),
                        Uteis.Moeda(s.getSeg().getValorICMS()),
                        Uteis.Moeda(s.getSeg().getValorSeguro()),
                        Uteis.Moeda(s.getSeg().getOutros()),
                        Uteis.Moeda(s.getSeg().getTotal()),
                        Uteis.Moeda(s.getValorJaPago()),
                        Uteis.Moeda(s.getValorFatura()-s.getValorJaPago()),
                        s.getCli().getNomeFaturante()});
                }
                vCarga+=s.getSeg().getMer().getValorMercadoria();
                vRecebeu+= s.getValorJaPago();
                vAreceber+=(s.getValorFatura()-s.getValorJaPago());

            }
        }
    


    private void buscarContas() {
        TelaMetodos.RemoveDadosTabela(tabela2, tabelaDespesas);
         ArrayList <Parcela> cont = new ArrayList<Parcela>();
        Data date = new Data(data.getText());
        cont.addAll(Controlador.buscaParcela(date.formatoBanco(),2));
        float temp=0;
        for(Parcela p: cont){
            tabela2.addRow(new String[]{p.getVencimento().Formata_Data(), Uteis.Moeda(p.getValor()),p.getConta().getTipo().getTipoConta()});
            temp+=p.getValor();
        }
        totalDespesas.setText(Uteis.Num(temp));
    }
    public void total(){
        TelaMetodos.RemoveDadosTabela(tabela3, tabelaTotal);
        tabela3.addRow(new String []{Uteis.NumInt(totalEmb),Uteis.Num(vCarga),Uteis.Num(vRecebeu),Uteis.Num(vAreceber),totalDespesas.getText()});
    }
    public void caixa(){
        caixaAnterior.setText(Uteis.Num(func.getValorCaixa()));
        totalAntigos.setText(totalRecebimentos.getText());
        totalDia.setText(Uteis.totalDia(sobraDia.getText(),totalAntigos.getText()));
        soma.setText(Uteis.totalDia(totalDia.getText(),caixaAnterior.getText()));
    }

        private void executaProcesso(Pessoal pes) {
      // if(!processo.isAlive())
        //        processo=null;
        if(processo==null) { //Instancia a thread SE não existir uma
            processo = new Thread(new Formulario(pes,barradeprogresso,label,3));
            processo.start();

        } else {
            label.setText("O processo ainda está em execução");
        }
    }


    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ProducaoDiariaPessoal().setVisible(true);
            }
        });
    }
    private DefaultTableModel tabela1 = new DefaultTableModel();
    private DefaultTableModel tabela2 = new DefaultTableModel();
    private DefaultTableModel tabela3 = new DefaultTableModel();
    private DefaultTableModel tabela4 = new DefaultTableModel();
    private float vCarga=0,vRecebeu=0,vAreceber=0;
    private int totalEmb=0;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JProgressBar barradeprogresso;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JTextField caixaAnterior;
    private javax.swing.JFormattedTextField data;
    private javax.swing.JTextField entrregue;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JLabel label;
    private javax.swing.JTextField responsavel;
    private javax.swing.JTextField sobraCaixa;
    private javax.swing.JTextField sobraDia;
    private javax.swing.JTextField soma;
    private javax.swing.JTable tabelaDespesas;
    private javax.swing.JTable tabelaDespesas2;
    private javax.swing.JTable tabelaProducao;
    private javax.swing.JTable tabelaTotal;
    private javax.swing.JTextField totalAntigos;
    private javax.swing.JTextField totalDespesas;
    private javax.swing.JTextField totalDia;
    private javax.swing.JFormattedTextField totalRecebimentos;
    // End of variables declaration//GEN-END:variables

}
